<?php
defined('SYSPATH') OR die('No direct access allowed.');
/**
 * form.php
 * @author ranuandra
 *
 * 7 Mei 2012 16:07:45
 *
 * 
 */
$thn = date("Y");
$thnlalu = $thn - 50;
for($k = $thn; $k >= $thnlalu; $k--)
{
	$thnlist[$k] = $k;
}
?>

    <header class="" id="overview">
      <div class="page-header">
          <h1>Data Pendidikan</h1>
      </div>
    </header>
	<div class="row">
    	<div class="span4">
               	<?php echo Form::open(URL::base().'pendidikan/save', array('class' => 'form-horizontal'));?>
                    <fieldset>
						<legend>Pendidikan Info</legend>
						
                        <div class="control-group">
                        	<label class="control-label" for="Pendidikan">Pendidikan</label>
                        	<div class="controls">
                        		<?php echo Form::select('mstpendidikan_id', $pendidikanlist, '', array('class' => 'input-medium', 'id' => 'pendidikan'))?>
                        	</div>
                        </div>
                        <div class="control-group">
                        	<label class="control-label">Fakultas</label>
                        	<div class="controls">
                        		<?php echo Form::input('mstfakultas_id', '', array('class' => 'input-medium', 'id' => 'jurusan'))?>
                        	</div>
                        </div>
                        <div class="control-group">
                        	<label class="control-label">Jurusan</label>
                        	<div class="controls">
                        		<?php echo Form::select('mstjurusan_id', $jurusanlist, '', array('class' => 'input-medium', 'id' => 'jurusan'))?>
                        	</div>
                        </div>
                         <div class="control-group">
                          		<label class="control-label" for="Institusi">Institusi</label> 
                          		<div class="controls">
                          			<?php echo Form::select('mstuniversitas_id', $universitases ,'', array('id'=>'e8','class' => 'input-medium'))?>
                          		</div>
                        </div>
                         <div class="control-group">
                        	<label class="control-label">Tahun Masuk</label>
                        	<div class="controls">
                        		<?php echo Form::select('thn_masuk', $thnlist, '', array('class' => 'input-medium'))?>
                        	</div>
                        </div>
                        <div class="control-group">
                        	<label class="control-label">Tahun Lulus</label>
                        	<div class="controls">
                        		<?php echo Form::select('thn_lulus', $thnlist, '', array('class' => 'input-medium'))?>
                        	</div>
                        </div>
                        <div class="control-group">
                        	<label class="control-label">IPK / NEM</label>
                        	<div class="controls">
                         		<?php echo Form::input('ipk', '', array('class' => 'input-medium'))?>
                         	</div>
                        </div>
                        <div class="form-actions">
                             <button class="btn btn-primary" type="submit">Save</button>
                             <button class="btn btn-primary">Cancel</button>
                        </div>

                    </fieldset>
                  <?php echo Form::close()?>
           </div>
           <div class="span4"></div>
      </div>